package com.cola.demo.Soundsystem;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Grup:com.cola.demo.Soundsystem
 * @Auther:cola
 * @Data:2021/4/20-2021-04-9:32
 * @version:1.0
 */
public class ApplicantionSpring {
    public static void main(String[] args) {
        System.out.println("ApplicationSpring is runing.......");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext_construct.xml");
        CompactDisc cd1 = (CompactDisc) context.getBean("compactDisc1");
        CompactDisc cd2 = (CompactDisc) context.getBean("compactDisc12");
        cd1.play();
        cd2.play();

    }
}
